package com.shop.entity;
	/*CREATE TABLE merchantmassage(
		id BIGINT(16) NOT NULL auto_increment PRIMARY KEY COMMENT '信息编号',
		message VARCHAR(100) NOT NULL COMMENT '信息内容',
		merchant_id BIGINT(16) NOT NULL COMMENT '商户编号（外键）',
		FOREIGN KEY (merchant_id) REFERENCES merchant(id)
	)ENGINE=INNODB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8;*/
/**
 * 
 * <b>消息存储实体类<b>
 * @author 威 
 * <br>2018年3月20日 上午11:53:43 
 *
 */
public class MerchantMessage {
	private Integer id ;
	private String message ;
	private Merchant  merchant ;
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public Merchant getMerchant() {
		return merchant;
	}
	public void setMerchant(Merchant merchant) {
		this.merchant = merchant;
	}
	@Override
	public String toString(){
		return "Member[id="+id+
				",message="+message+
				",merchantId="+merchant.getId()+"]" ;
	}
}
